import request from '@/utils/request'

// 查询每日猜想列表
export function listGuessdaily(query) {
  return request({
    url: '/stock/guessdaily/list',
    method: 'get',
    params: query
  })
}

// 查询每日猜想详细
export function getGuessdaily(id) {
  return request({
    url: '/stock/guessdaily/' + id,
    method: 'get'
  })
}

// 新增每日猜想
export function addGuessdaily(data) {
  return request({
    url: '/stock/guessdaily',
    method: 'post',
    data: data
  })
}

// 修改每日猜想
export function updateGuessdaily(data) {
  return request({
    url: '/stock/guessdaily',
    method: 'put',
    data: data
  })
}

// 删除每日猜想
export function delGuessdaily(id) {
  return request({
    url: '/stock/guessdaily/' + id,
    method: 'delete'
  })
}
